package com.xgp.mywordapp.service;

import com.xgp.mywordapp.model.User;
import com.xgp.mywordapp.model.Words;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface WordService {

    /**
     * 添加单词
     * @param word
     * @return
     */
    public int addWord(Words word);

    /**
     * 使单词的错误次数加1
     * @param word
     * @return
     */
    public int updateWordAllerror(Words word);


}
